class Page8 extends BaseScreen {
    public constructor() {
        super();
        this.skinName = "resource/eui_skins/Page8Skin.exml";
    }

    private img_1: eui.Image;
    private img_2: eui.Image;
    private img_3: eui.Image;
    private img_4: eui.Image;
    private img_5: eui.Image;
    private img_6: eui.Image;
    private img_7: eui.Image;
    private img_8: eui.Image;
    private img_9: eui.Image;
    private img_10: eui.Image;
    private img_11: eui.Image;
    private img_12: eui.Image;

    private img_3_y: number = 0;
    private img_4_y: number = 0;
    private img_5_y: number = 0;

    protected childrenCreated(): void {
        super.childrenCreated();
        this.init_view();
    }

    public init_view() {
        this.resetui();
    }

    public resetui() {
        this.img_1.alpha = 0;
        this.img_2.scaleY = this.img_3.scaleY = 0;
        this.img_4.scaleY = 0;
        if(this.xx_page){
            this.xx_page.stop();
        }
    }

    public showPage() {
        super.showPage();
        this.resetui();
        egret.Tween.get(this.img_1).to({ alpha:1}, 2000);
        egret.Tween.get(this.img_2).wait(200).to({ scaleY:1}, 800, egret.Ease.backOut);
        egret.Tween.get(this.img_3).wait(600).to({ scaleY: 1}, 800, egret.Ease.backOut);
        egret.Tween.get(this.img_4).wait(1200).to({ scaleY: 1}, 800, egret.Ease.backOut);

        if(this.xx_page){
            this.xx_page.start();
        }
    }

    public resize(): void {
        super.resize();
    }
}